# -*- encoding: utf-8 -*-
from django.db import models
from django.utils.translation import ugettext_lazy as _
from modulo.page.models import Section

class Contact(models.Model):
    section = models.ForeignKey(Section,
                                limit_choices_to = {'app': 'contact'},
                                related_name=u'contacts',
                                help_text=_(u'Sélection de la page contact à laquelle se rattache le destinataire.'))

    email = models.EmailField(_('email'))

    def __unicode__(self):
        return u'%s > %s' % (self.section, self.email)
